package com.miracle.system.mapper;

import com.miracle.system.domain.SysRole;
import com.miracle.system.domain.SysRoleUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author ：miracle.cui
 * @description：TODO
 * @date ：2020/9/16 14:01
 */
public interface SysRoleUserMapper {

    public Integer batchInsertRoleUser(List<SysRoleUser> roleUsers);
    public void deleteRoleUserByUserIds(Integer[] userIds);
    public void deleteRoleUserByRoleIds(Integer[] roleIds);

    public void deleteRoleUserByUserIdAndNoRole(@Param("userId") Integer userId,
                                                @Param("roleList") List<SysRole> roleList);
}
